import logging
import yagmail
def log_set():
    logging.basicConfig(filename="log.txt",filemode="w+",level=logging.DEBUG,format='%(filename)s -> %(levelno)s -> %(asctime)s -> %(message)s')

def send_mail(filepath):
    mail =yagmail.SMTP(user="2930885223@qq.com",password="ilarvpztxodrdgha",host="smtp.qq.com")
    mail.send(to="2930885223@qq.com",subject="今日报普高",contents="请您查收我们的报告",attachments=filepath)